<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>

<script>
export default {
	onLaunch: async function() {
		// uni.hideLoading()
		// #ifdef H5
		console.log('欢迎来到SRC_')
		// #endif
		//自动登录？
    const { token } = uni.getStorageSync('SRC-TOKEN')
    if(token) this.$store.commit('SET_TOKEN',token)
		await this.$store.dispatch('getInfo').catch(()=>{})
    const { uType } = this.$store.getters
	},
	onShow: function() {
		console.log('App Show')
	},
	onHide: function() {
		console.log('App Hide')
	},
}
</script>
<style>
	@import "/static/font/font.css";
</style>
<style lang="scss">
	.uni-toast{
		height: 250rpx !important;
		width: 250rpx !important;
		display: flex;
    flex-direction:column;
		justify-content: center;
		align-items: center;
		flex-wrap: nowrap;
		.uni-icon_toast{
			// zoom: 1.8;
			margin: 0 !important;
		}
    .uni-toast__content{
      margin: 0 !important;
      -webkit-line-clamp: 2;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }
	}
	.vHidden{
		visibility: hidden;
	}
	.shakeThe{
		animation: shakeThe 0.1S 3;
	}
	@keyframes shakeThe{
		25%{
			transform: translate(2px,0px);
		}
		75%{
			transform: translate(-2px,0px);
		}
		100%{
			transform: translate(0px,0px);
		}
	}
</style>
